package com.joy.model;

import lombok.*;

import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
public class AssignmentSubmission {
    private Integer id; // 主键id
    private Integer studentId; // 学生id
    private String studentName; // 学生姓名
    private Integer assignmentId; // 任务id
    private String assignmentName; //任务名称
    private Integer courseId; // 课程id
    private String content; // 提交内容
    private String fileUrl; // 上传文件地址
    private String assessment; // 老师评价
    private BigDecimal score; // 分数
    private String status; // 提交状态
    private Date submitTime; // 提交时间
    private Date createTime; // 最后修改时间
    private Date modifyTime; // 创建时间

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public Integer getAssignmentId() {
        return assignmentId;
    }

    public void setAssignmentId(Integer assignmentId) {
        this.assignmentId = assignmentId;
    }

    public String getAssignmentName() {
        return assignmentName;
    }

    public void setAssignmentName(String assignmentName) {
        this.assignmentName = assignmentName;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getAssessment() {
        return assessment;
    }

    public void setAssessment(String assessment) {
        this.assessment = assessment;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(Date submitTime) {
        this.submitTime = submitTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public AssignmentSubmission() {

    }

    @Override
    public String toString() {
        return "AssignmentSubmission{" +
                "id=" + id +
                ", studentId=" + studentId +
                ", studentName='" + studentName + '\'' +
                ", assignmentId=" + assignmentId +
                ", assignmentName='" + assignmentName + '\'' +
                ", courseId=" + courseId +
                ", content='" + content + '\'' +
                ", fileUrl='" + fileUrl + '\'' +
                ", assessment='" + assessment + '\'' +
                ", score=" + score +
                ", status='" + status + '\'' +
                ", submitTime=" + submitTime +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                '}';
    }

    public AssignmentSubmission(Integer id, Integer studentId, String studentName, Integer assignmentId, String assignmentName, Integer courseId, String content, String fileUrl, String assessment, BigDecimal score, String status, Date submitTime, Date createTime, Date modifyTime) {
        this.id = id;
        this.studentId = studentId;
        this.studentName = studentName;
        this.assignmentId = assignmentId;
        this.assignmentName = assignmentName;
        this.courseId = courseId;
        this.content = content;
        this.fileUrl = fileUrl;
        this.assessment = assessment;
        this.score = score;
        this.status = status;
        this.submitTime = submitTime;
        this.createTime = createTime;
        this.modifyTime = modifyTime;
    }
}